#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

/**********************************************************************
 *                          COMMENT                                   *
 **********************************************************************/

//void foo(void) {
//	static int i = 1;
//	printf("i = %d, &i: %p\n", i++, &i);
//	foo();
//}



long long next_fib(void) {
	static long long a = 0;
	static long long b = 1;

	long long t = a + b;
	a = b;
	b = t;

	return a;
}

int main(void) {
	// fibnacci: 0, 1, 1, 2, 3, 5, 8, 13, ...
	printf("%lld\n", next_fib());	// 1
	printf("%lld\n", next_fib());	// 1
	printf("%lld\n", next_fib());	// 2
	printf("%lld\n", next_fib());	// 3
}

